import { ref, onMounted } from 'vue';

export default function useIsShowPhone(roleName) {
    const isShowPhone = ref(true);
    const getIsShowPhone = () => {
        isShowPhone.value = roleName == 'ADMIN' || roleName == 'DEV' || roleName == 'OPII';
    };

    onMounted(getIsShowPhone);

    return { isShowPhone, getIsShowPhone };
}
